@import './animate.css';
@import './font-awesome.css';
@import './font-pigpen.css';
@import './_color.less';
@import './_mixins.less';

// public fonts
@font-face {
  font-family: 'FangZhengQiTi';
  src: url('./fonts-private/FangZhengQiTi.ttf');
}

// public class
.text-grey {color: @colorGrey;}
.text-ellipsis {white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

// bootstrap
.form-group {
  & + .form-group {
    margin-top: 1em;
  }
}
.form-check-input {
  margin-right: .5em;
}
.btn-block {
  display: block;
  width: 100%;
}

// global style
html {color: @colorMain;}
// html {font-size:calc(0.5em + 1vw); color: @colorMain;}
html, body {overflow: hidden;}
html, body, .page {height: 100%;}
.page {
  font-size: 16px;
  padding: 10px 15px;
  // .page-body {
  //   height: 0;
  //   flex-grow: 1;
  //   overflow: auto;
  // }
  fieldset {
    display: block;
    margin-inline-start: 2px;
    margin-inline-end: 2px;
    padding-block-start: 0.35em;
    padding-inline-start: 0.75em;
    padding-inline-end: 0.75em;
    padding-block-end: 0.625em;
    min-inline-size: min-content;
    border: 1px solid #bbb;
    border-radius: 6px;
    & + fieldset {
      margin-top: 1em;
    }
  }
  legend {
    padding: 0 .5em;
    font-size: 1rem;
    color: #888;
    float: none;
    width: auto;
  }
  textarea {
    resize: none;
  }
  p {
    line-height: 2;
  }
  pre {
    padding: 1em;
    border: 1px solid #eaeefb;
    line-height: 1.5;
    background-color: #f8f8f8;
    font-family: Roboto Mono,Monaco,courier,monospace;
  }
  .tabs-bar {
    .tab-item {
      display: inline-block;
      padding: 8px 16px;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      &:hover {
        color: #2d8cf0;
      }
      &.active {
        color: #2d8cf0;
        border-color: #2d8cf0;
      }
      & + .tab-item {
        margin-left: 16px;
      }
    }
  }
  .row-flex {
    display: flex;
    align-items: center;
    .row-flex-prefix {
      margin-right: .5em;
      cursor: pointer;
    }
    .row-flex-main {
      width: 0;
      flex-grow: 1;
      & + .row-flex-main {
        margin-left: .5em;
      }
    }
    .row-flex-suffix {
      margin-left: .5em;
    }
    &[align="center"] {
      align-items: center;
    }
  }
  .nodata {
    .absolute-fullscreen;
    .flex-center;
    font-size: 16px;
    color: #999;
    background-color: #fff;
  }
}
